﻿@using Janus.Mes.VO;
@model IEnumerable<CheckFeatureVO>
@{
    Layout = null;
    int i = 1;
    ViewBag.ViewTitle = "检验特性";
    var SearchParma = ViewData["SearchParma"] as CheckFeatureVO ?? new CheckFeatureVO();
}
<form id="pagerForm" method="get" action="BaseData/CheckFeature/index?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="LocCode" value="@SearchParma.FeatCode" />
    <input type="hidden" name="LocName" value="@SearchParma.FeatName" />
   
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" id="Form_@ViewData["CurrentController"]" action="BaseData/CheckFeature/index?action=search&OpID=@ViewData["OperateID"]"
          method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        检验特性编号：
                    </td>
                    <td>
                        @Html.TextBox("FeatCode", SearchParma.FeatCode)
                    </td>
                    <td>
                        检验特性名称：
                    </td>
                    <td>
                       @Html.TextBox("FeatName", SearchParma.FeatName)
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                查询
                                            </button>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons", ViewData["CurrentPageButtons"])
    <table class="treetable list" width="100%" layouth="95">
        <thead>
            <tr class="header">
                <th width="30px">序号</th>
                <th style="width: 150px">检验特性编号</th>
                <th>检验特性</th>
                <th>缺陷等级</th>
                <th>检验项目编码</th>
                <th>检验项目</th>
                <th>控制数据</th>
                <th>是否破坏</th>
                <th>启用</th>
            </tr>
        </thead>
        @foreach (var item in Model)
        {

            <tr target="CheckFeature_id" rel="@(item.FeatCode)/">
                <td>
                    @i
                </td>
                <td>@item.FeatCode</td>
                <td>
                    @item.FeatName
                </td>
                <td>
                    @item.DefectLCode 
                </td>
                <td>
                    @item.CheckPCode
                </td>
                <td>
                    
                </td>
                <td>
                   @item.ControlData
                </td>
                <td>
                    <input type="checkbox" checked="@item.IsDestroy" onclick="return false;" />
                </td>
                <td>
                    <input type="checkbox" checked="@item.IsEnable" onclick="return false;" />
                </td>

            </tr>
            i += 1;
        }
    </table>
</div>
@Html.Partial("PageBar")

